package com.yjd.comm.enums;

/**
 * 信用记录使用关联表
 *
 */
public enum CreditDataRefTableEnum {

	mfq_order("1", "订单总表"),
	mfq_credit_line_apply("2", "信用额度申请表");

	private CreditDataRefTableEnum(String value, String description) {
		this.value = value;
		this.description = description;
	}

	/**
	 * 值
	 */
	private String value;
	/**
	 * 描述
	 */
	private String description;

	public void setValue(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}

	public static CreditDataRefTableEnum get(Integer value) {
		CreditDataRefTableEnum[] vs = CreditDataRefTableEnum.values();
		for (CreditDataRefTableEnum v : vs) {
			if (v.getValue().equals(value)) {
				return v;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		CreditDataRefTableEnum v = get(value);
		return v != null ? v.getDescription() : null;
	}
}
